{config_load file=info.conf section="links"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#title#}</title>
{#css_style#}{#css_flipPage#}{#js_query#}{#js_getday#}
	<link href="/scripts/jquery-ui-1.9.1.custom/css/ui-lightness/jquery-ui-1.9.1.custom.css" rel="stylesheet">
	<script src="/scripts/jquery-ui-1.9.1.custom/js/jquery-ui-1.9.1.custom.min.js"></script>
</head>
<body>
{include file="head.tpl"}
 <div class="waps">
       <div class="con">     
            <div  class="nopa">
            	<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
                    <div class="pbox">
				<!--左框架开始 -->
						{include file="railway_m_left.tpl"}
						<!--左框架结束-->
						<div class="ls_rbox">
							<div class="am_title"><span class="lsfonts_r">编辑->【中转站->目的站】</span></div>
							<div class="listers">
	                           	<table>
                                  	<tr>
                                        	<td  class="step_rulname" valign="middle">中转站:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<select name="_szz" id="szz">
                                          						<option value=""></option>
                                          						{section name=results loop=$tran}
                                          						<option value="{$tran[results]}" {if $szdata.border==$tran[results]}selected="selected"{/if}>{$tran[results]}</option>
                                          						{/section}
                                          		</select>
                                            	<span class="step_remark"></span>
                                            </td>
                                    </tr>
                                    <tr>
                                        	<td  class="step_rulname" valign="middle">目的站:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="ss" type="text"  class="step_txt" maxlength="20"  style="width:160px;" value="{$szdata.end}"/>
                                            	<span class="step_remark"></span>
                                            	<span class="step_rulname" style="margin-left:20px;">站代码:</span>
                                            	<input id="ec" type="text"  class="step_txt" maxlength="20"  style="width:100px;" value=""/>
                                            	<input style="padding:3px;" type="button" value=" 搜 索 " onclick="get_ss();"/>
                                            </td>
                                        </tr>
                                  	<tr>
                                     <tr>
                                        	<td  class="step_rulname" valign="middle">箱方案:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<select name="_sb" id="sb">
                                          						<option value=""></option>
                                          						{section name=results loop=$box}
                                          						<option value="{$box[results]}" {if $szdata.box==$box[results]}selected="selected"{/if}>{$box[results]}</option>
                                          						{/section}
                                          		</select>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                  	<tr>
                                        	<td  class="step_rulname" valign="middle">20':</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="s2g" type="text"  class="step_txt" maxlength="20"  style="width:160px;" value="{$szdata.p20}"/>
                                            	<span class="step_remark"></span>
                                            </td>
                                      </tr>
                                      <tr>
                                        	<td  class="step_rulname" valign="middle">40GP:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="s4g" type="text"  class="step_txt" maxlength="20"  style="width:160px;" value="{$szdata.p40gp}"/>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                       <tr>
                                        	<td  class="step_rulname" valign="middle">40HC:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="s4h" type="text"  class="step_txt" maxlength="20"  style="width:160px;" value="{$szdata.p40hc}"/>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                      
                                       <tr>
                                        	<td  class="step_rulname" valign="middle">有效期:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<input id="st" class="step_txt" type="text" style=" cursor:pointer;width:160px;" value="{$szdata.stime|date_format:'%Y-%m-%d'}" onclick="SelectDate(this,'yyyy\-MM\-dd')" readonly="readonly"/>
                                               	<img class="timebz"  src="../images/timebg.png"  onclick="SelectDate(document.getElementById('st'),'yyyy\-MM\-dd')"/>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                       <tr>
                                        	<td  class="step_rulname" valign="top">备 注:</td>
                                            <td class="step_rultxt" valign="middle">
                                            	<textarea id="sr" class="step_textarea" style="width:570px; height:260px;" >{$szdata.remark}</textarea>
                                            	<span class="step_remark"></span>
                                            </td>
                                       </tr>
                                  </table>
                                   <table class="next_step" align="center"> 
									<tr> 
										<td><a href="javascript:modify('{$rid}');"><div class="next_btn">设 置</div></a></td></td>
										<td><a href="list_ze.php"><span>返回列表</span></a></td> 
									</tr> 
									</table>
                            </div>
						</div>
						<!--右框架结束-->
					<div class="clear"></div>
</div></div></div></div>
<div id="test"></div>
{include file="foot.tpl"}
<script type="text/javascript">
var ss={$end}
{literal}
$(document).ready(function(){
	$( "#ss" ).autocomplete({source: ss});
});
function get_ss(){
	var code=encodeURIComponent($.trim($("#ec").attr("value")));
	var params ={act:"get_ss",c:code};
	$.post('modify_ze.php',params,function(data) {
		//$("#test").html(data);
		if(data<0){
			alert("站代码不存在！！");
		}else{
			$("#ss").attr("value",data);
		}
	});	
}
function modify(i){
	var s=encodeURIComponent($.trim($("#ss").attr("value")));
	var z=encodeURIComponent($.trim($("#szz").val()))
	var b=encodeURIComponent($.trim($("#sb").val()));
	var g2=encodeURIComponent($.trim($("#s2g").attr("value")));
	var g4=encodeURIComponent($.trim($("#s4g").attr("value")));
	var h4=encodeURIComponent($.trim($("#s4h").attr("value")));
	var t=encodeURIComponent($.trim($("#st").attr("value")));
	var r=encodeURIComponent($.trim($("#sr").attr("value")));
	var params ={act:"modify",i:i,s:s,z:z,g2:g2,g4:g4,h4:h4,b:b,t:t,r:r};
	$.post('modify_ze.php',params,function(data) {
		//$("#test").html(data);
		alert(data);
	});	
}
</script>{/literal}
</body>
</html>